package com.sky.wsp.camel;

import cn.hutool.core.io.file.FileWriter;

/**
 * @desccription 在此输入描述
 * @auth wangshaopeng@talkweb.com.cn
 * @date 2022/12/20
 */
public class Log {
    private static StringBuilder sb = new StringBuilder();

    public static void log(String log) {
        sb.append(log).append("\r\n");
    }

    public static void persist(String targetFilePath) {
        FileWriter writer = new FileWriter(targetFilePath);
        writer.write(sb.toString());
        sb = new StringBuilder();
    }
}
